<template>
  <div class="posttable">
    <el-row style="margin-bottom: 10px;">
      <el-col :span="24" style="padding-right: 30px;padding-left: 40px;margin-top: 10px;">
        <el-row>
          <el-col>
            <el-col style="width:20%;" class="bot">
              <el-row>
                <el-col>
                  <p class="title">客户简称</p>
                </el-col>
                <el-col>
                  <p class="text">{{info.customerName}}</p>
                </el-col>
              </el-row>
            </el-col>
            <el-col style="width:20%;" class="bot">
              <el-row>
                <el-col>
                  <p class="title">沟通对象</p>
                </el-col>
                <el-col>
                  <p class="text">{{info.target}}</p>
                </el-col>
              </el-row>
            </el-col>
            <el-col style="width:20%;" class="bot">
              <el-row>
                <el-col>
                  <p class="title">时间</p>
                </el-col>
                <el-col>
                  <p class="text">{{info.time | converTime("YYYY-MM-DD")}}</p>
                </el-col>
              </el-row>
            </el-col>
          </el-col>

          <el-col class="bot">
            <el-row>
              <el-col>
                <p class="title">沟通内容</p>
              </el-col>
              <el-col>
                <p class="text">{{info.content}}</p>
              </el-col>
            </el-row>
          </el-col>
          <el-col class="bot">
            <el-row>
              <el-col>
                <p class="title">沟通结果</p>
              </el-col>
              <el-col>
                <p class="text">{{info.result}}</p>
              </el-col>
            </el-row>
          </el-col>
        </el-row>
      </el-col>
    </el-row>
  </div>
</template>
<script>
import axios from "axios";
import qs from "qs";
import moment from "moment";

export default {
  name: "customerDetail",
  props:{
    detailCode: {
      type: Object
    },
    },
  data() {
    return {
      id: null,
      info: {},
      show: true
    };
  },
  created() {
    this.id = this.detailCode.id;

    axios
        .post(this.url + "/communicaterecord/select", {
          id: this.id + ""
        })
        .then(res => {
          this.unlogin(res.data.code);
          if (res.data.code == 200) {
            if (res.data.data !== null) {
              this.info = res.data.data;
            }
          }
        });
  },
  methods: {

  }
};
</script>
<style scoped>
.title {
  color: #757575;
  margin-bottom: 10px;
  font-size: 14px;
}

.text {
  color: #333333;
  font-weight: 700;
  font-size: 14px;
  word-break: break-all;
  white-space: pre-line;
}

.bot {
  margin-bottom: 30px;
}

.Line {
  border: 0.5px solid #e8e8e8;
  margin-bottom: 30px;
}

@media screen and (min-width: 1200px) and (max-width: 1900px) {
  .word {
    word-break: break-all;
    width: 200px;
  }
}
</style>
